﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PostList.aspx.cs" Inherits="StudentManage.Web.Post.PostList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register src="../UserControl/UC_Login.ascx" tagname="UC_Login" tagprefix="uc1" %>
<%@ Register src="../UserControl/UC_Contact.ascx" tagname="UC_Contact" tagprefix="uc2" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript">
    $(document).ready(function () {
        $(".nav_left li").removeClass("current");
        $(".nav_left li[typeid='<%=Request.QueryString["ProjectTypeid"].ToString()%>']").addClass("current");
    });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="content" class="bg2"> 
		<div class="wrap_con clearfix">
        	<div class="side">
            	<uc1:UC_Login ID="UC_Login" runat="server" ShowId="1" />
                <div class="side_box">
                	<h6>勤工助学分类</h6>
                    <ul class="side_ul">
                        <asp:Repeater ID="RepTypeList" runat="server">
                            <ItemTemplate>
                                 <li><a href="PostList.aspx?TypeId=<%#Eval("id")%>&ProjectTypeid=<%=Request.QueryString["ProjectTypeId"].ToString()%>">·<%#Eval("TypeName")%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div class="side_box">
                	<h6>联系方式</h6>
                    <uc2:UC_Contact ID="UC_Contact" runat="server" />
                </div>
            </div>
                
        	<div class="main">
            	<div class="main_con">
                    <div class="main_tit">
                        <strong>勤工助学</strong>
                        <asp:Button ID="Btn_Search" runat="server" CssClass="btn_w" Text="查 询" onclick="Btn_Search_Click" />
                        <asp:TextBox ID="txt_Search" runat="server"  class="input_txt mr_10" style="padding:2px 4px; float:right" value="请输入查询的标题" onfocus='if(this.value=="请输入查询的标题"){this.value=""}' onblur='if(this.value==""){this.value="请输入查询的标题"}' ></asp:TextBox>
                    </div>
                    <ul class="news_ul clearfix">
                        <asp:Repeater ID="RepPostList" runat="server">
                            <ItemTemplate>
                                <li><span class="fl">·<a href="PostList.aspx?TypeId=<%#Eval("Typeid")%>&ProjectTypeid=<%=Request.QueryString["ProjectTypeId"].ToString()%>" class="brown">[<%#GetTypeName(Eval("Typeid").ToString())%>]</a><a href="PostInfo.aspx?Pid=<%#Eval("id")%>"><%#Eval("Title")%><span class="brown">[查看详细]</span></a></span><em>(<%#Convert.ToDateTime(Eval("AddTime")).ToString("yyyy/MM/dd")%>)</em></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="pagenav_box">
                        <div class="pagenav">
                        <webdiyer:aspnetpager id="AspNetPager1" runat="server" pagesize="10" 
                        firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" prevpagetext="上一页" 
                        showpageindex="true" onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:aspnetpager>
                        </div>
                    </div>
                    
                </div> 
                
            </div>
        </div>


    </div>
</asp:Content>
